package service;

import dao.TravelAgencyMapper;
import entity.t_complaont;
import entity.t_transaction;
import entity.t_travel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("travelAgencyService")
public class TravelAgencyServiceImpl implements TravelAgencyService{
    @Resource
    private TravelAgencyMapper travelAgencyMapper;


    @Override
    public List<t_travel> getListAll(String tt_travel_Name, String tt_travel_Type) {
        return travelAgencyMapper.getListAll(tt_travel_Name,tt_travel_Type);
    }

    @Override
    public int addTravel(t_travel travel) {
        return travelAgencyMapper.addTravel(travel);
    }

    @Override
    public int deleteTravel(String tt_travel_Id) {
        return travelAgencyMapper.deleteTravel(tt_travel_Id);
    }

    @Override
    public int modify(t_travel travel) {
        return travelAgencyMapper.modify(travel);
    }

    @Override
    public List<t_travel> getListRoutes(String tt_travel_Name, String tt_travel_Open, String tt_travel_Createtime, String tt_travel_Start, String tt_travel_End) {
        return travelAgencyMapper.getListRoutes(tt_travel_Name,tt_travel_Open,tt_travel_Createtime,tt_travel_Start,tt_travel_End);
    }

    @Override
    public t_travel getXianlu(String tt_travel_Id) {
        return travelAgencyMapper.getXianlu(tt_travel_Id);
    }

    @Override
    public t_travel getBasicView(String tt_travel_Id) {
        return travelAgencyMapper.getBasicView(tt_travel_Id);
    }

    @Override
    public List<t_transaction> getListSearch(String tt_transaction_Name, String tt_transaction_Type, String tt_transaction_Time) {
        return travelAgencyMapper.getListSearch(tt_transaction_Name,tt_transaction_Type,tt_transaction_Time);
    }

    @Override
    public List<t_complaont> getListcomplaint(String tc_complaont_Name, String tc_complaont_Types, String tc_complaont_Time) {
        return travelAgencyMapper.getListcomplaint(tc_complaont_Name,tc_complaont_Types,tc_complaont_Time);
    }
}
